package xu.com.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xu.com.service.MessageProducer;

import javax.annotation.Resource;

@Slf4j
@RestController
@RequestMapping
public class RocketMqController {

    @Resource
    private MessageProducer messageProducer;

    @RequestMapping("/message")
    public void message() throws Exception {
        messageProducer.run("");
    }

}
